﻿using System;

class Program
{
     static void Main(string[] args)
     {
        bool[] array = new bool[101];
        for (int i = 2; i < array.Length; i++)
        {
            if (!array[i])
            {
                for (int j = i + i; j < array.Length; j += i)
                {
                    array[j] = true;
                }
            }
        }
        
        Console.WriteLine("Prime number from 2 to 100：");
            for (int i = 2; i < array.Length; i++)
            {
                if (!array[i])
                {
                    Console.WriteLine(i + " ");
                }
            }
     }
 }
